﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mytrip.Theme
{
    public static class TabMenuElements
    {
        public static string menucontainer()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                if (ThemeSetting.brouser == "Chrome" | ThemeSetting.brouser == "Safari")
                {
                    result.AppendLine("top:62px;");
                }
                else 
                { 
                    result.AppendLine("top:61px;"); 
                }
            } 
            if (ThemeSetting.theme() == "green")
            {
                if (ThemeSetting.brouser == "IE" && ThemeSetting.majorversion < 8)
                {
                    result.AppendLine("top:60px;"); 
                }
                else
                { 
                    result.AppendLine("top:61px;");
                }

            }
            result.AppendLine("position:absolute;");
            result.AppendLine("float: left;");
            return result.ToString();
        }
        public static string ul_menu()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("padding: 0;");
            result.AppendLine("position: relative;");
            result.AppendLine("margin: 0;");
            result.AppendLine("text-align: left;");
            return result.ToString();
        }
        public static string ul_menu_li()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("display: inline;");
            result.AppendLine("list-style: none;");
            return result.ToString();
        }
        public static string ul_menu_li_greeting()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("padding: 7px 17px;");
            result.AppendLine("text-decoration: none;");
            result.AppendLine("line-height: 2.8em;");
            return result.ToString();
        }
        public static string ul_menu_li_a()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("border-bottom: 1px #4b6c9e solid;");
                result.AppendLine("background-color: #e8eef4;");
                result.AppendLine("color: #034af3;");
            } if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("border-bottom: 1px #709A30 solid;");
                result.AppendLine("background-color: #f49a24;");
                result.AppendLine("color: #fff;");
            }
            result.AppendLine("padding: 7px 17px;");
            result.AppendLine("font-weight: bold;");
            result.AppendLine("text-decoration: none;");
            result.AppendLine("line-height: 2.8em;");
            return result.ToString();
        }
        public static string ul_menu_li_a_hover()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("color: #034af3;");
                result.AppendLine("border-bottom: 1px #fff solid;");
                result.AppendLine("background-color: #fff;");
            } if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("color: #000;");
                result.AppendLine("border-bottom: 1px #EDEBD5 solid;");
                result.AppendLine("background-color: #EDEBD5;");
            }
            result.AppendLine("text-decoration: none;");
            return result.ToString();
        }
        public static string ul_menu_li_a_active()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("color: #034af3;");
                result.AppendLine("border-bottom: 1px #fff solid;");
                result.AppendLine("background-color: #fff;");
            } if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("color: #000;");
                result.AppendLine("border-bottom: 1px #EDEBD5 solid;");
                result.AppendLine("background-color: #EDEBD5;");
            }
            result.AppendLine("text-decoration: none;");
            return result.ToString();
        }
        public static string ul_menu_li_selected_a()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("border-bottom: 1px #4b6c9e solid;");
                result.AppendLine("color: #000;");
                result.AppendLine("background-color: #EDEBD5;");
            } if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("border-bottom: 1px #709A30 solid;");
                result.AppendLine("color: #000;");
                result.AppendLine("background-color: #EDEBD5;");
            }
            return result.ToString();
        }
    }
}
